using LiJ.Common.Core.Enums;

namespace LiJ.Common.Core
{
	/// <summary>
	/// 带Id的结果实体
	/// </summary>
	public class ResultIdMo : ResultMo
	{
		/// <summary>
		/// 返回的关键值，如返回添加是否成功并返回id
		/// </summary>
		public long Id
		{
			get;
			set;
		}

		/// <summary>
		///
		/// </summary>
		public ResultIdMo()
		{
		}

		/// <summary>
		/// 构造函数
		/// </summary>
		/// <param name="id"></param>
		public ResultIdMo(long id)
		{
            Id = id;
		}

		/// <summary>
		/// 构造函数
		/// </summary>
		/// <param name="ret"></param>
		/// <param name="message"></param>
		public ResultIdMo(int ret, string message)
			: base(ret, message)
		{
		}

		/// <summary>
		/// 构造函数
		/// </summary>
		/// <param name="ret"></param>
		/// <param name="message"></param>
		public ResultIdMo(ResultTypes ret, string message)
			: base(ret, message)
		{
		}
	}
}
